﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.Home
{
    /// <summary>
    /// 广告
    /// </summary>
    [Table("BTB_NewProducts")]
    public class BTB_NewProducts
    {
        /// <summary>
        /// id
        /// </summary>
        [Key, Column(Order = 1)]
        public String id { get; set; }

        /// <summary>
        /// 顶部图片
        /// </summary>
        public String TopPic { get; set; }
        /// <summary>
        /// 左边图片
        /// </summary>
        public String LeftPic { get; set; }

        /// <summary>
        /// 顶部商品id
        /// </summary>
        public String TopGoodsid { get; set; }
        /// <summary>
        /// 左边商品id
        /// </summary>
        public String LeftGoodsid { get; set; }
        /// <summary>
        /// 广告类型
        /// </summary>
        public String GoodsTypeid { get; set; }
        /// <summary>
        /// 创建者
        /// </summary>
        public String CreatorId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public Boolean? Deleted { get; set; }
        /// <summary>
        /// 编辑时间
        /// </summary>
        public String Editor { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? EditTime { get; set; }
        /// <summary>
        /// 顶部商品名称
        /// </summary>
        [NotMapped]
        public String GoodsTopName { get; set; }
        /// <summary>
        /// 左部商品名称
        /// </summary>
        [NotMapped]
        public String GoodsLeftName { get; set; }
        /// <summary>
        /// 商品分类名称
        /// </summary>
        [NotMapped]
        public String GoodsTypeName { get; set; }
    }
}